package com.game.framework.dao.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document("AwardEntity")
@TableName( value ="tf_award" )
public class AwardEntity extends BaseEntity<Long> {
    //奖品类型 无奖品 = 0; 藏品 = 1;  盲盒 = 2; 实物 = 3; 天赋卡 = 4; 优惠券 = 5;
    @TableField(value = "award_type")
    private int awardType;
    //奖品名称
    @TableField(value = "award_name")
    private String awardName;
    //藏品ID
    @TableField(value = "object_id")
    private long objectId;
    //兑换鱼种 小虾 = 1; 小鱼 = 2;中鱼  = 3;大鱼  = 4;标鱼 = 5
    @TableField(value = "fish_type")
    private int fishType;
    //兑换需要数量
    @TableField(value = "fish_count")
    private int fishCount = 0;
    //总库存
    @TableField(value = "all_count")
    private int allCount = 0;
    //剩余库存
    @TableField(value = "remain_count")
    private int remainCount = 0;
    //缩略图
    @TableField(value = "img")
    private String img;
    //上下架 0 =下架 1 = 上架
    @TableField(value = "updown")
    private int updown;
}

